angular.module('wf-utils')
.service('authorityManage', ($rootScope,$http)->
    union:(list)->
        $rootScope.resourceList=[] if $rootScope.resourceList==undefined
        $rootScope.resourceList=_.union($rootScope.resourceList,list)
        console.log('用户资源列表：', $rootScope.resourceList)
    set:(resourceList)->
        $rootScope.resourceList=resourceList
        console.log('用户资源列表：', $rootScope.resourceList)
    get:->
        $rootScope.resourceList
    check:(path)->
        _.some($rootScope.resourceList,(resource)->resource.path==path)
)